// 引入Service和请求头ServiceName
import { Service, ServiceName } from '@/network/http.js'

const api = {
  /**
    * 获取主列表
    */
  queryAll (params) {
    return Service.get(
      `/${ServiceName}/api/external/TGpsYardController/queryAll`, { params }
    )
  },
  /**
    * 通过库场id查询垛号
    */
  queryStackPosition (params) {
    return Service.get(
      `/${ServiceName}/api/external/TGpsYardController/queryStackPosition`, { params }
    )
  },
  /**
    * 新增
    */
  insert (params) {
    return Service.post(
      `/${ServiceName}/api/external/TGpsYardController/insert`, params
    )
  },
  /**
    * 删除
    */
  deleteById (params) {
    return Service.delete(
      `/${ServiceName}/api/external/TGpsYardController/deleteById`, {params}
    )
  },
  /**
    * 获取机械
    */
  queryTGpsEquipment (params) {
    return Service.get(
      `/${ServiceName}/api/external/TGpsYardController/queryTGpsEquipment`
    )
  },
}
export default api